
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Report Input</title>
        <style type="text/css">
            body     { font-family: "Bauhaus 93";
                       color: green;
            }
            h1       { font-family: "Comic Sans MS";
                       color: blue; }
        </style>
    </head>
    <body background="">
        <form action="konfirmasiTest.jsp" method="post">
            <p>tabel nilai</p>
            <tr>
                <%
                    model.DataBaseConnection conn = new model.DataBaseConnection();
                %>
                <%
                
                        String query = "select *"
                                    + "from nilai";
                        java.sql.Statement statement = conn.getConnection().createStatement();
                        java.sql.ResultSet result = statement.executeQuery(query);

                       
                %>
            <table border="1" bgcolor="white">
                <tbody>
                    <tr>
                        <th>nama</th>
                        <th>jawaban 1</th>
                        <th>jawaban 2</th>
                        <th>jawaban 3</th>
                        <th>jawaban 4</th>
                        <th>jawaban 5</th>
                        <th>status</th>
                        <th>nilai</th>
                    </tr>
                      <%while (result.next()) {%>
                <tr>

                    <td><%
                        out.println(result.getString("nama"));%>
                    </td>
                    <td><%
                        out.println(result.getString("jawaban1"));%>
                    </td>
                    <td><%
                        out.println(result.getString("jawaban2"));%>
                    </td>
                    <td><%
                        out.println(result.getString("jawaban3"));%>
                    </td>

                    <td>
                        <%out.println(result.getString("jawaban4"));%>

                    </td>
                    <td>
                        <%out.println(result.getString("jawaban5"));%>

                    </td>
                    <td>
                        <%out.println(result.getString("status"));%>

                    </td>
                    <td>
                        <%out.println(result.getString("nilai"));
                                                   }%>
                       
                    </td>
                   
                   
                </tr>
            </tbody>

            </table>
                
        </tr>
    </form>
</body>
</html>


